//Camera模块管理设备的摄像头，可用于拍照、摄像操作，通过bsl.camera获取摄像头管理对象。
define(['./bslCamera'],function(bslCamera){

    var cmr = {
        description: "访问摄像头设备",
        camera:bslCamera,//摄像头对象

        //获取bslCamera对象
        getCamera: function(index){
            var me = this;
            var direction = (index == 2) ? Camera.Direction.FRONT : Camera.Direction.BACK;
            me.camera.cameraDirection = direction;
            return me.camera;
        }
    };

    return cmr;
});
